package org.lfh.wintersun.web.secondKill.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.io.Serial;
import java.time.LocalDateTime;

import org.lfh.wintersun.common.base.BaseEntity;
import lombok.EqualsAndHashCode;

/**
 * (SecondKillOrder) 表实体类
 *
 * @author lfh
 * @since 2025-04-12 22:36:31
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("second_kill_order")
public class SecondKillOrderEntity extends BaseEntity implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;
    /**
     * 用户id
     */
    private Long userId;
    /**
     * 优惠卷id
     */
    private Long voucherId;
    /**
     * 支付方式：1:余额支付 2：支付宝 3：微信
     */
    private Integer payType;
    /**
     * 状态 1未支付 2已支付 3已核销 4已取消 5退款中 6已退款
     */
    private Integer status;
    /**
     * 核销时间
     */
    private LocalDateTime payTime;
    /**
     * 核销时间
     */
    private LocalDateTime useTime;
    /**
     * 退款时间
     */
    private LocalDateTime refundTime;
}
